package com.gzz.redis.cachedata;

import java.io.IOException;
import java.util.HashMap;
import java.util.Map;

/**
 * @author higmd
 */
public class CacheDemo {
    /**
     * 添加缓存
     */
    @CacheData(keyName = "WPR_WPR",cacheTime = 3600)
    public Map<String,Object> getRedisMap(String param) throws IOException {
        HashMap<String, Object> map = new HashMap<>();
        map.put("hello","helloWorld");
        return map;
    }

    /**
     * 清除缓存
     */
    @CacheClear(keyName = "WPR")
    public void cacheClear(){

    }
}
